#!/usr/bin/env python
#-*- coding:utf-8 -*-
import commands  

def bmc_fresh_raid_cfg():
	cmd='ls /dev/md*'
	status, output = commands.getstatusoutput(cmd)
	if(status == 0):
		print(output)
		for mdtmp in lscmd.split(' '):
			if(mdtmp != ''):
				print(mdtmp[5:])
		return true;
	else:
		print(status)
		print(output)
		return False;


if __name__ == '__main__':
	bmc_fresh_raid_cfg()
